﻿<UserControl x:Class="BizControl.Presentation.Infrastructure.Controls.PersonMarkControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:controls="clr-namespace:BizControl.Presentation.Infrastructure.Controls">

    <UserControl.Resources>
        <DataTemplate x:Key="MarksBriefSetTemplate">
            <controls:MarkControl DataContext="{Binding Mark}" />
        </DataTemplate>
    </UserControl.Resources>

    <Grid>
        <ItemsControl Background="{x:Null}" ItemsSource="{Binding}" 
                      ItemTemplate="{StaticResource MarksBriefSetTemplate}" HorizontalContentAlignment="Stretch">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <WrapPanel />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </ItemsControl>
    </Grid>
</UserControl>
